#///////////////////////////////////////////////////////////////////////////////
## .. module:: setup
# 
# Setup the QTSA R environment.
#
# Configuration
# !!!!!!!!!!!!!
# Set ``database.name`` to point to your database.
#
# R usage
# !!!!!!!
# ::
#
#   source('setup.R')
#
# .. codeauthor:: Joe Kwiatkowski
##
#///////////////////////////////////////////////////////////////////////////////
# Configuration:
source('conf.R')

# Depends:
library(RSQLite)

# Defines the files in the project...
source('packageFiles.R')
# ... and then source them:
sapply(files, source) 

con.tmp<-(dbConnect(dbDriver("SQLite"), dbname=CONF$database))
con<- dbConnect(SQLite(), dbname = ":memory:")
sqliteCopyDatabase(con.tmp, con)
dbDisconnect(con.tmp)

